CREATE FUNCTION lineal_calc_values(double precision[], bigint, double precision[], double precision[], bigint)
RETURNS double precision[] AS 'libdecoding_plugin.so', 'lineal_calc_values'
LANGUAGE C STRICT

SELECT lineal_calc_values(ARRAY(Select gh_x from test_table), (SELECT count(*) FROM test_table), ARRAY[1.0, 2.0, 1.0, 2.0], ARRAY[0, 100], 2)
